/**
 * 解析部门数据树形为数组
 * @param {Object} list
 */
function getDepartList(list) {
	var departList = [];
    for(var i=0; i<list.length; i++) {
    		var optionParent = {
    			sectionID: list[i].sectionID,
    			sectionName: list[i].sectionName,
    		}
    		departList.push(optionParent);
    		for (var j=0;j<list[i].childrenList.length;j++) {
        		var optionChild = {
        			sectionID: list[i].childrenList[j].sectionID,
        			sectionName: "&nbsp;&nbsp;&nbsp;&nbsp;"+list[i].childrenList[j].sectionName,
        		}
        		departList.push(optionChild);
        		for (var k=0;k<list[i].childrenList[j].childrenList.length;k++) {
	        		var optionGrandson = {
	        			sectionID: list[i].childrenList[j].childrenList[k].sectionID,
	        			sectionName: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+list[i].childrenList[j].childrenList[k].sectionName,
	        		}
	        		departList.push(optionGrandson);
        		}
    		}
    }
	return departList;
}
